package me.helllp.bootman.core.factory;

import java.util.List;

import me.helllp.bootman.core.bean.MethodBean;

/**
 * 生产控制器的代码
 * 
 * @author Administrator
 *
 */
public class ControllerFactory extends AbstractFactory{

	private static final long serialVersionUID = -4404015562999165533L;

	public ControllerFactory(String identify,String basePackage){
		super(identify,basePackage);
	}

	@Override
	public String getIdentify() {
		return identify;
	}
	
	private String packageName;
	
	private String rootUrl;
	
	private String memo;
	
	private List<MethodBean> nodeList;
	
	private String serviceImpl;
	
	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public String getRootUrl() {
		return rootUrl;
	}

	public void setRootUrl(String rootUrl) {
		this.rootUrl = rootUrl;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public List<MethodBean> getNodeList() {
		return nodeList;
	}

	public void setNodeList(List<MethodBean> nodeList) {
		this.nodeList = nodeList;
	}

	public String getServiceImpl() {
		return serviceImpl;
	}

	public void setServiceImpl(String serviceImpl) {
		this.serviceImpl = serviceImpl;
	}

	@Override
	public String getTemplateFile() {
		return "auto/controller.ftl";
	}

	@Override
	public String getFileName() {
		return getIdentify() + "Controller.java";
	}
}
